﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pro.Business.Implementation
{
    using Business.Entities;
    using Business.Contract;
    using Data.Contract;

    public class EmployeeLogic : IEmployeeLogic
    {
        IEmployeeData employeeData;

        public EmployeeLogic(IEmployeeData employeeData)
        {
            this.employeeData = employeeData;
        }

        public EmployeeEntity AddEmployee(EmployeeEntity employee)
        {
            return this.employeeData.Add(employee);
        }

        public bool UpdateEmployee(EmployeeEntity employee)
        {
            return this.employeeData.Update(employee);
        }

        public bool DeleteEmployee(EmployeeEntity employee)
        {
            return this.employeeData.Delete(employee);
        }
    }
}
